<ul class="products">
<?php $brandproducts = new WP_Query('post_type=product&meta_key=productbrand&meta_value='.$productbrand.'&posts_per_page=-1'); ?>
	<?php while ($brandproducts->have_posts()) : $brandproducts->the_post(); ?>
		
        <?php
			$listprice = get_post_custom($post->ID);
			$showlistprice = $listprice['_regular_price'];
			foreach ( $showlistprice as $showlistprice );
	
			$youpay = get_post_custom($post->ID);
			$showyoupay = $youpay['_sale_price'];
			foreach ( $showyoupay as $showyoupay );
		?>
		
		<li class="product">
			<a href="<?php the_permalink(); ?>">
				<img class="attachment-shop_catalog wp-post-image" src="<?php echo wp_get_attachment_url( get_post_thumbnail_id() ); ?>" width="150" height="150" />
				<h3><?php the_title(); ?></h3>
				<span class="price">
					<del>
						<span class="amount">$<?php echo $showlistprice; ?></span>
					</del>
					<ins>
						<span class="amount">$<?php echo $showyoupay; ?></span>
					</ins>
				</span>
				<div style="width:100%;height:0px;clear:both;"></div>
			</a>
			<a class="button" href="<?php the_permalink(); ?>">View Details</a>
		</li>
	
	<?php endwhile ?>
<?php wp_reset_postdata(); ?>
</ul>